import CYRequest from './request '

// 从环境变量配置文件中获取配置
const BASE_URL = process.env.VUE_APP_BASE_URL
const TIMEOUT = process.env.VUE_APP_TIMEOUT
  ? Number.parseInt(process.env.VUE_APP_TIMEOUT)
  : 0

const cyRequest = new CYRequest({
  baseURL: BASE_URL,
  timeout: TIMEOUT
})

export default cyRequest
